<?php
//检测定义的模块是否需要登录才能访问
session_start();
include 'Conf/userConfig.php';
$_url=$_REQUEST;
$m=$_url["m"];
$a=$_url["a"];
if(in_array($m, $pcf["USER_AUTH_LOGIN"])){
	if($a=="login"  ){
		$_SESSION="";
	}else if($a=="checkLogin"){
		
	}
	else{
		if(!$_SESSION["user_id"]){
			$adminUrl=$_SERVER['HTTP_HOST'].rtrim(dirname($_SERVER['PHP_SELF']));
			header("Location: http://".$adminUrl."/?m=Admin&a=login");
		}
		
	}
}